package com.wuzhishan.news.service;

import com.wuzhishan.news.pojo.Result;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpSession;

public interface homeService {
    /**
     * 我的关注板块
     * @param id
     * @param page
     * @param mv
     * @return
     */
    ModelAndView followers(long id, String page, ModelAndView mv);

    /**
     * 我的粉丝板块
     * @param id
     * @param page
     * @param mv
     * @return
     */
    ModelAndView fans(long id, String page, ModelAndView mv);

    /**
     * 我的喜欢板块
     * @param id
     * @param page
     * @param mv
     * @return
     */
    ModelAndView favor(long id, String page, ModelAndView mv);

    /**
     * 取消喜欢
     * @param articleId
     * @param userId
     * @return
     */
    Result unfavor(String articleId, long userId);

    /**
     * 获取用户通知
     * @param id
     * @param page
     * @param mv
     * @return
     */
    ModelAndView notifies(long id, String page, ModelAndView mv);

    ModelAndView notifiesCount(long id, HttpSession session, ModelAndView mv);
}
